from pyecharts.charts import Bar
from pyecharts import options
avg=[5000,4000,2800,5666]
city=["北京","南昌","九江","上海"]
bar=Bar()
bar.add_xaxis(city)
bar.add_yaxis("最低月薪/元",avg)
bar.set_global_opts(title_opts=options.TitleOpts(title="各个城市最低月薪图",subtitle="单位/元"))
bar.render("barmin.html")